const modulesFiles = require.context("./api", true, /\.js$/);
const modules = modulesFiles.keys().reduce((modules, modulePath) => {
  const value = modulesFiles(modulePath);
  console.log(value)
  modules = Object.assign(modules, value);
  return modules;
}, {});
console.log(modules)
export default modules;